import com.yu.common.service.UserService;
import com.yu.rpc.core.bootstrap.ProviderBootStrap;
import com.yu.rpc.core.model.ServiceRegisterInfo;

import java.util.ArrayList;
import java.util.List;

public class ProviderExample {

    public static void main(String[] args) {
        ServiceRegisterInfo<UserService> serviceRegisterInfo = new ServiceRegisterInfo<>(UserService.class.getName(), UserServiceImpl.class);
        List<ServiceRegisterInfo<?>> list = new ArrayList<>();
        list.add(serviceRegisterInfo);
        ProviderBootStrap.init(list);
    }
}
